package com.buddy.sds.web;

import com.buddy.sds.common.message.handler.Event;
import com.buddy.sds.common.message.handler.EventHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Handler2 implements EventHandler<Event1> {

    public void handlerMessage(Event1 event) {

        log.info("这是 event2");
    }

    public Class<Event1> supportEvent() {
        return Event1.class;
    }
}
